package com.yy.jhl.bean;

import java.io.Serializable;

/**
 * Created by libingn on 2017/12/20.
 */

public class ProductInfo implements Serializable {

    /**
     * order_item_id : 127685B9-A046-F2AF-00EC-1312980976CE
     * order_id : A0E58FB4-4126-2E1D-EDB7-352EBCC7C0FE
     * item_name : 产品名称
     * model : 型号
     * quantity : 总数量
     * unit : 单位
     * unit_price : 单价
     * status : 1
     * del : 0
     * create_time : 0000-00-00 00:00:00
     * update_time : 0000-00-00 00:00:00
     */

    private String batch_order_item_id;
    private String order_item_id;
    private String order_id;
    private String item_name;
    private String model;
    private String quantity;
    private String unit;
    private String unit_price;
    private String status;
    private String del;
    private String create_time;
    private String update_time;
    private String id;
    private double realQuantity = 0;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getBatch_order_item_id() {
        return batch_order_item_id;
    }

    public void setBatch_order_item_id(String batch_order_item_id) {
        this.batch_order_item_id = batch_order_item_id;
    }

    public double getRealQuantity() {
        return realQuantity;
    }

    public void setRealQuantity(double realQuantity) {
        this.realQuantity = realQuantity;
    }

    public String getOrder_item_id() {
        return order_item_id;
    }

    public void setOrder_item_id(String order_item_id) {
        this.order_item_id = order_item_id;
    }

    public String getOrder_id() {
        return order_id;
    }

    public void setOrder_id(String order_id) {
        this.order_id = order_id;
    }

    public String getItem_name() {
        return item_name;
    }

    public void setItem_name(String item_name) {
        this.item_name = item_name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getQuantity() {
        return quantity;
    }

    public void setQuantity(String quantity) {
        this.quantity = quantity;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public String getUnit_price() {
        return unit_price;
    }

    public void setUnit_price(String unit_price) {
        this.unit_price = unit_price;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getDel() {
        return del;
    }

    public void setDel(String del) {
        this.del = del;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public String getUpdate_time() {
        return update_time;
    }

    public void setUpdate_time(String update_time) {
        this.update_time = update_time;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj)
            return true;
        if (obj == null)
            return false;
        if (getClass() != obj.getClass())
            return false;
        final ProductInfo other = (ProductInfo) obj;
        if(this.getOrder_id()!=other.getOrder_id())
            return false;
        return true;
    }
}
